<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />

		<link rel="stylesheet" type="text/css" href="<%=path%>/css/base.css" />
		<script type="text/javascript" src="<%=path%>/js/popup.js"></script>
		<script language="javascript">
 
           
 
           
           function cjlist(cid)
           {
                var url="<%=path %>/chengjiList.action?cid=" + cid;
		        window.location.href=url;
           }
           
           function plist(cid)
           {
                var url="<%=path %>/chengjiPMList.action?cid=" + cid;
		        window.location.href=url;
           }
           function report(cid)
           {
                var url="<%=path %>/report.action?cid=" + cid;
		        window.location.href=url;
           }
           function exportScore(cid)
           {
                var url="<%=path %>/exportScore.action?cid=" + cid;
		        window.location.href=url;
           }
       </script>
	</head>

	<body leftmargin="2" topmargin="2"
		background='<%=path%>/images/allbg.gif'>
	
		<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
				<tr bgcolor="#E7E7E7">
					<td height="14" colspan="4" background="<%=path %>/images/tbg.gif">&nbsp;课程管理&nbsp;</td>
				</tr>
				<tr align="center" bgcolor="#FAFAF1" height="22">
											 
											<td>课程名称</td>
											<td>任课老师</td>
										    <td>班级</td>
										    <td width="20%">操作</td>
									 
									 
		        </tr>	
				 
				 <c:forEach items="${courseList}" var="course" varStatus="sta">
				<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					 
											 
											<td bgcolor="#FFFFFF" align="center">${course.name} </td>
											<td bgcolor="#FFFFFF" align="center">${course.tea.name} </td>
						 		 		<td bgcolor="#FFFFFF" align="center">${course.bname} </td>
						 		 			 
						 		 				 
					<td bgcolor="#FFFFFF" align="center">

                   
                         <input type="button" value="成绩管理" onclick="cjlist('${course.id}')"/>
					     
					     <input type="button" value="成绩排名" onclick="plist('${course.id}')"/>
					     
                         <input type="button" value="成绩分布" onclick="report('${course.id}')"/>
                         
                         <input type="button" value="成绩导出" onclick="exportScore('${course.id}')"/>
 
					</td>
					  
					 
				</tr>
				</c:forEach>
			</table>
 


	</body>
</html>